﻿using System.Reflection.Metadata.Ecma335;
using CommunityToolkit.Mvvm.ComponentModel;

namespace 自定义多选下拉框
{
    public class Company : ObservableObject
    {
        private string _name;
        private int _age;
        private string _address;

        public string Name
        {
            get => _name;
            set
            {
                if (value == _name)
                    return;
                _name = value;
                OnPropertyChanged();
            }
        }

        public int Age
        {
            get => _age;
            set
            {
                if (value == _age)
                    return;
                _age = value;
                OnPropertyChanged();
            }
        }

        public string Address
        {
            get => _address;
            set
            {
                if (value == _address)
                    return;
                _address = value;
                OnPropertyChanged();
            }
        }
    }
}
